#include "ThreadFactory.h"
#include <iostream>

DefaultThreadFactory::DefaultThreadFactory(const std::string& prefix, bool daemon)
    : prefix_(prefix), daemon_(daemon) {
}

std::thread DefaultThreadFactory::createThread(std::function<void()> task) {
    return std::thread([this, task]() {
        if (daemon_) {
        }
        task();
        });
}